package admin

import (
	"context"
	"server/internal/tool"

	"server/api/admin/system"
)

func (c *ControllerSystem) LogFileContent(ctx context.Context, req *system.LogFileContentReq) (res *system.LogFileContentRes, err error) {
	res = new(system.LogFileContentRes)
	res.Data, err = tool.ReadFileDataByLine(req.LogFilePath, req.LogStart, req.LogEnd)
	return
}
